package com.liaozibo.cloud.license.controller;

import com.liaozibo.cloud.license.model.License;
import com.liaozibo.cloud.license.service.LicenseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author liaozibo
 * @since 2021/04/08
 **/
@RestController
@RequestMapping("/licenses")
public class LicenseController {

    @Autowired
    private LicenseService licenseService;

    @GetMapping
    public List<License> getLicenses() {
        return licenseService.getLicense();
    }
}
